/*
    This file is part of the KDE libraries
    SPDX-FileCopyrightText: ?

    SPDX-License-Identifier: ?
*/

#ifndef WIDGETSDELETEORTRASHJOBHANDLER_H
#define WIDGETSDELETEORTRASHJOBHANDLER_H

#include "deleteortrashjobhandlerinterface.h"

class QWidget;

namespace KIO
{
class WidgetsDeleteOrTrashJobHandler : public DeleteOrTrashJobHandlerInterface
{
    Q_OBJECT
public:
    explicit WidgetsDeleteOrTrashJobHandler(QObject *parent = nullptr);
    ~WidgetsDeleteOrTrashJobHandler() override;

    void askUserDeleteOrTrash(KJob *job,
                              const QList<QUrl> &urls,
                              AskUserActionInterface::DeletionType deletionType,
                              AskUserActionInterface::ConfirmationType confirm) override;

    void setWindow(QWidget *widget);

private:
    // Note: no d pointer because not exported at this point
    QWidget *m_parentWidget = nullptr;
};

}

#endif // WIDGETSDELETEORTRASHJOBHANDLER_H
